package com.mezz.bones.framework.mybatis.dynamic.config;

import com.baomidou.dynamic.datasource.creator.DataSourceCreator;
import com.baomidou.dynamic.datasource.creator.hikaricp.HikariDataSourceCreator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Configuration
public class DataSourceCreatorConfig {
    @Bean
    @Primary
    public DataSourceCreator primaryCreator(HikariDataSourceCreator hikariCreator) {
        return hikariCreator;
    }
}